﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="partner.aspx.cs" Inherits="EZCRS.HCMS.Web.manage.setup.partner" %>

<%@ Register Assembly="Book38.Net.CustomControl" Namespace="Book38.Net.CustomControl"
    TagPrefix="cc2" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>
    <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>
</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
    <uc2:titlepage ID="Titlepage1" runat="server" inittitle="渠道消息分发设置"></uc2:titlepage>
    <table class="main-table" cellpadding="1" cellspacing="1">
        <tr class="line-even">
            <td style="text-align: right">
                类型：
            </td>
            <td style="text-align: left;">
                &nbsp;<cc2:WebTextBox ID="types" runat="server" CssClass="text-line" Width="150px"><Value>
</Value></cc2:WebTextBox>
            </td>
            <td style="text-align: right">
                公司编码：
            </td>
            <td style="text-align: left">
                &nbsp;<cc2:WebTextBox ID="codes" runat="server" CssClass="text-line" Width="150px"></cc2:WebTextBox>&nbsp;
            </td>
            <td style="text-align: left">
                &nbsp;<asp:Button ID="BtnSearch" runat="server" CssClass="bttn" OnClientClick="javascript:Page_Load('Search');return false;"
                    Text="<%$ Resources:Site, ButtonSearch %>" />
            </td>
        </tr>
    </table>
    <br />
    <uc1:jspage ID="Jspage1" runat="server"></uc1:jspage>
    <input type="hidden" id="orderkey" value="0" /><input type="hidden" id="txt_sql"
        value="" />
    <script type="text/javascript">

        function down(filetype) {
            var sstr = createsearch();
            downloadfile(filetype, 'bookrecord', sstr);
        }
        function Page_Load(pageindex) {//debugger
            var strtype = $F("types").value;
            var strcode = $F("codes").value;
            pageindex = pageIndexSetting(pageindex);    //pageindex的设定
            EZCRS.HCMS.myajax.AjaxBaseInfo.getbasepartner(pageindex, strtype, strcode, setTable);
            pageLastSetting("", pageindex);     //最后的赋值

        }

        function del(obj) {
            if (confirm("是否要删除？")) {
                var delid = obj.parentNode.parentNode.cells[0].innerHTML;
                EZCRS.HCMS.myajax.AjaxBaseInfo.delbasepartner(delid, function (resp) { if (resp.value == "1") { alert('删除成功！'); obj.parentNode.parentNode.style.display = 'none'; } else { alert('删除失败！'); } });
            }
        }
        AjaxPro.timeoutPeriod = 40000;
        var l = $F("loadinfo");

        AjaxPro.onError = function (e) {
            l.innerHTML = "<%= Resources.Site.LabLoadErrInfo %>";
        }
        AjaxPro.onTimeout = function (t) {
            l.innerHTML = "<%= Resources.Site.LabLoadErrInfo %>";
        }
    
    </script>
    </form>
</body>
</html>
